using System.Configuration;

namespace Drill.Configuration.ConfigFile
{
	public class RootPathProviderElement : ConfigurationElement, IRootPathProviderConfiguration
    {
		private const string EnabledAttributeName = "enabled";
        private const string TypeAttributeName = "type";

		/// <summary>
        /// Gets a value indicating whether the item is enabled.
        /// </summary>
        /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
		[ConfigurationProperty(EnabledAttributeName, DefaultValue = true, IsRequired = false)]
        public bool Enabled
        {
			get { return (bool)this[EnabledAttributeName]; }
        }

        /// <summary>
        /// Gets the assembly-qualified type name.
        /// </summary>
        /// <value>The type.</value>
        [ConfigurationProperty(TypeAttributeName, IsRequired = false)]
        public string Type
        {
            get { return this[TypeAttributeName] as string; }
        }
    }
}